<?php
class LoginForm extends MForm {

    public function __construct() {
        parent::__construct(__route('ml-admin/login'));
        $this->setMethod(self::METHOD_POST);
        $this->add(self::ELEMENT_TEXT, 'loginName')
                ->setLabel(__t('mandrill.admin.login.form.userName'));
        $this->add(self::ELEMENT_PASSWORD, 'loginPassword')
                ->setLabel(__t('mandrill.admin.login.form.userPassword'));
        $this->add(self::ELEMENT_SUBMIT, 'loginSubmit')
                ->setValue(__t('mandrill.admin.login.form.submit'))
                ->setHtmlOption('class', 'ml-admin-login-button');
    }
    
}
?>
